package com.zut.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 项目与用户角色映射表
 * </p>
 *
 * @author yyl
 * @since 2021-03-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Projectanduser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    /**
     * 项目id
     */
    @TableField("projectID")
    private String projectid;

    /**
     * 用户ID
     */
    @TableField("userID")
    private String userid;

    /**
     * 角色权限
     */
    private String role;

    @TableField(exist = false)
    private User user;

    @TableField(exist = false)
    private Project project;
}